<?php
    header("content-type:text/html;charset=utf-8");
    $phone = $_GET['phone'];
	$password = $_GET['password'];
    $conn = mysqli_connect("localhost:3306","root","root","ddd");
    $sql = "select * from pp where phone='$phone' and password='$password'";
    $result = mysqli_query($conn,$sql);
    mysqli_close($conn);
    $rows = mysqli_num_rows($result);
    if($rows===1){
        echo "1";//有。可以登录
    }else{
        echo "0";//无。无法登录
    }

?>



